package chai.ning.prequel;

public class Container1Test2 {
	/**
	 *  	测试指定位置插入新元素
	 */
	public static void main(String[] args) {
		
		Container1 c2 = new Container1(3);
		
		c2.add("我是一哥");
		c2.add("我是三哥");
		System.out.println( "capacity : " + c2.capacity() + " , size : " + c2.size() );
		
		System.out.println( c2 );
		
		c2.add(1, "我是二哥");
		System.out.println( c2 );
		System.out.println( "capacity : " + c2.capacity() + " , size : " + c2.size() );
		
	}
}
